<cfcomponent>

    <cffunction name="password"> 
         <cfargument name="oldpw" type="string" required="true">
         <cfargument name="pssword" type="string" required="true">

        <cfquery datasource="#Request.DS#">
			UPDATE `cfp_users` SET `password` = md5('#pssword#') WHERE `id` = '#Session.id#' AND `password` = md5('#oldpw#')
	 	</cfquery>

    </cffunction>

    <cffunction name="personalize">
         <cfargument name="greeting" type="string" required="true">
         <cfargument name="ausbilder" type="string" required="true">
         <cfargument name="betrieb" type="string" required="true">
         <cfargument name="adresse" type="string" required="true">
         <cfargument name="postleitzahl" type="string" required="true">
         <cfargument name="stadt" type="string" required="true">

        <cfquery datasource="#Request.DS#">
			UPDATE `cfp_users` SET
				`greeting` = '#greeting#',
				`bereich` = '#bereich#'
			WHERE `id` = '#Session.id#'
	 	</cfquery>
	 	<cfset Request.greeting = greeting >
    </cffunction>

</cfcomponent>